package com.example.bourse.controller;

import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.core.handle.Context;

@Controller
public class RootController {

    @Mapping("/")
    public void  root(Context ctx) {
        ctx.redirect("/bourse/admin/index");
    }

    @Mapping("/bourse")
    public void  adminRoot(Context ctx) {
        ctx.redirect("/bourse/admin/index");
    }
}
